Skip to content

Throw and do not evict storage when bad data is set to Onyx#116

Merged
Gonals merged 2 commits into
mainfrom
marcaaron-catchIndexDBErrors
Jan 21, 2022
Merged

Throw and do not evict storage when bad data is set to Onyx#116
Gonals merged 2 commits into
mainfrom
marcaaron-catchIndexDBErrors

Conversation

@marcaaron

@marcaaron marcaaron commented Jan 20, 2022

Copy link
Copy Markdown
Contributor

Details

When setting non-serializable data in Onyx we are catching the error and trying to empty the storage. We are at the moment naively assuming that any error is a storage issue. This will make sure that we do not treat IndexedDB "put" errors as storage issues.

Related Issues

#115

Linked PRs

Expensify/App#7343

@marcaaron marcaaron self-assigned this Jan 20, 2022
@marcaaron marcaaron requested a review from a team as a code owner January 20, 2022 22:56
@MelvinBot MelvinBot requested review from Gonals and removed request for a team January 20, 2022 22:57
@Gonals Gonals merged commit 41c0ee3 into main Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants